package com.ytjj.qmyx.mall.service;

import com.kuaidi100.sdk.response.AutoNumResp;
import com.ytjj.common.api.CommonResult;
import com.ytjj.qmyx.mall.model.request.ReturnAddExpressRequest;
import com.ytjj.qmyx.mall.model.request.ReturnCommitRequest;
import com.ytjj.qmyx.mall.model.response.ReturnGoodsResponse;
import com.ytjj.qmyx.mall.model.vo.ReturnGoodsVO;

import java.util.List;
import java.util.Map;

/**
 *
 *  *
 **/
public interface ReturnService {

    ReturnGoodsResponse create(Integer userId, Integer orderInfoId);

    void commitReturn(ReturnCommitRequest request);

    void addExpress(ReturnAddExpressRequest request);

    ReturnGoodsResponse getReturnStatus(String serviceNo, Integer id);

    Object getReturnList(Integer id);

    void revoke(String serviceNo, String token);

    Object getExpress(String serviceNo);

    ReturnGoodsResponse appCreate(Integer userId, Integer orderInfoId);

    CommonResult appComminReturn(ReturnCommitRequest request);

    List<ReturnGoodsVO> selectReturnGoods(Integer pageNum,Integer pageSize,Integer type,String token);

    CommonResult getReturnGoodsProgress(Integer returnGoodsId);

    CommonResult getExpressCompany();

    CommonResult addAppCommitRedis();

    /**
     * 根据快递单号查询快递公司 (快递100接口)
     * @param num
     * @return
     */
    List<Map<String, String>> queryExpressCompany(String num);
}
